package com.jzg.jcptadmin.viewinterface;

import com.jzg.jcptadmin.base.MvpView;
import com.jzg.jcptadmin.data.vo.User;

import java.util.Map;

/**
 * Created by jzg on 2015/12/22.
 */
public interface MainActivityInterface extends MvpView {
    /**
     * 登陆成功
     *
     * @param user
     */
    public void success(User user);

    /**
     * 登陆失败
     *
     * @param error
     */
    public void failed(String error);

    /**
     * 自动登陆
     */
    public void autoLogin();

    /**
     * 退出登陆
     */
    public void exitLogin();

    /**
     * 获取登陆参数
     *
     * @return
     */
    public Map<String, String> getLoginParams();

}
